package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 广告
 * </p>
 *
 * @author kutty
 * @since 2018-12-20
 */
@TableName("sys_ad")
public class Ad extends Model<Ad> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 图片链接
     */
    @TableField("img_url")
    private String imgUrl;
    /**
     * 链接地址
     */
    @TableField("link_url")
    private String linkUrl;
    /**
     * 排序
     */
    @TableField("order_by")
    private String orderBy;
    /**
     * 是否使用
     */
    @TableField("is_use")
    private String isUse;
    /**
     * 渠道
     */
    private String channel;
    /**
     * 弹出次数
     */
    @TableField("pop_num")
    private Integer popNum;
    @TableField("pop_time")
    private Integer popTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 时间
     */
    private Date date;
    /**
     * 类型(1链接2apk)
     */
    private Integer type;
    /**
     * 图片版本ID
     */
    @TableField("img_version_id")
    private Integer imgVersionId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(String orderBy) {
        this.orderBy = orderBy;
    }

    public String getIsUse() {
        return isUse;
    }

    public void setIsUse(String isUse) {
        this.isUse = isUse;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Integer getPopNum() {
        return popNum;
    }

    public void setPopNum(Integer popNum) {
        this.popNum = popNum;
    }

    public Integer getPopTime() {
        return popTime;
    }

    public void setPopTime(Integer popTime) {
        this.popTime = popTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getImgVersionId() {
        return imgVersionId;
    }

    public void setImgVersionId(Integer imgVersionId) {
        this.imgVersionId = imgVersionId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Ad{" +
        "id=" + id +
        ", imgUrl=" + imgUrl +
        ", linkUrl=" + linkUrl +
        ", orderBy=" + orderBy +
        ", isUse=" + isUse +
        ", channel=" + channel +
        ", popNum=" + popNum +
        ", popTime=" + popTime +
        ", remark=" + remark +
        ", date=" + date +
        ", type=" + type +
        ", imgVersionId=" + imgVersionId +
        "}";
    }
}
